import request from '@/utils/request'

// 插入隐患计划执行结果
export function createHtPlanDetailExe(data) {
  return request({
    url: '/biz/ht-plan-detail-exe/create',
    method: 'post',
    data: data
  })
}

// 更新隐患计划详情信息
export function updateHtHiddentroublePlan(data) {
  return request({
    url: '/biz/ht-plan-detail/update',
    method: 'put',
    data: data
  })
}


// 获得风险相关信息
export function getHtHiddentroublePlan(query) {
  return request({
    url: '/biz/ht-plan-detail/getRiskInfoPage',
    method: 'get',
    params: query
  })
}

// 隐患排查计划执行列表展示【查询】
export function getHtHiddenPlanExePage(query) {
  return request({
    url: '/biz/ht-plan-exe/page',
    method: 'get',
    params: query
  })
}

// 风险点相关信息
export function getRiskInfoList(data) {
  return request({
    url: '/biz/riskInfo/getRiskInfoList',
    method: 'post',
    params: data
  })
}

